
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>图标 · introduce</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../index.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="i18n.html" />
    
    
    <link rel="prev" href="router-lazyload.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    引导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="vscode.html">
            
                <a href="vscode.html">
            
                    
                    Vscode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="jsdoc.html">
            
                <a href="jsdoc.html">
            
                    
                    Jsdoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="webpack.html">
            
                <a href="webpack.html">
            
                    
                    Webpack
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="router.html">
            
                <a href="router.html">
            
                    
                    路由和侧边栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="env.html">
            
                <a href="env.html">
            
                    
                    环境变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="cors.html">
            
                <a href="cors.html">
            
                    
                    跨域问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="router-lazyload.html">
            
                <a href="router-lazyload.html">
            
                    
                    路由懒加载
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.9" data-path="icons.html">
            
                <a href="icons.html">
            
                    
                    图标
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="i18n.html">
            
                <a href="i18n.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="eslint.html">
            
                <a href="eslint.html">
            
                    
                    ESLint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="permission.html">
            
                <a href="permission.html">
            
                    
                    权限验证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="style.html">
            
                <a href="style.html">
            
                    
                    样式
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >图标</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x56FE;&#x6807;">&#x56FE;&#x6807;</h1>
<p>&#x5982;&#x679C;&#x4F60;&#x6CA1;&#x6709;&#x5728;&#x672C;&#x9879;&#x76EE; <a href="https://github.com/PanJiaChen/vue-element-admin/tree/master/src/icons/svg" target="_blank">Icon</a> &#x4E2D;&#x627E;&#x5230;&#x9700;&#x8981;&#x7684;&#x56FE;&#x6807;&#xFF0C;&#x53EF;&#x4EE5;&#x5230; <a href="http://iconfont.cn/" target="_blank">iconfont.cn</a> &#x4E0A;&#x9009;&#x62E9;&#x5E76;&#x751F;&#x6210;&#x81EA;&#x5DF1;&#x7684;&#x4E1A;&#x52A1;&#x56FE;&#x6807;&#x5E93;&#xFF0C;&#x518D;&#x8FDB;&#x884C;&#x4F7F;&#x7528;&#x3002;&#x6216;&#x8005;&#x5176;&#x5B83; svg &#x56FE;&#x6807;&#x7F51;&#x7AD9;&#xFF0C;&#x4E0B;&#x8F7D; svg &#x5E76;&#x653E;&#x5230;&#x6587;&#x4EF6;&#x5939;&#x4E4B;&#x4E2D;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;</p>
<h2 id="&#x751F;&#x6210;&#x56FE;&#x6807;&#x5E93;&#x4EE3;&#x7801;">&#x751F;&#x6210;&#x56FE;&#x6807;&#x5E93;&#x4EE3;&#x7801;</h2>
<p>&#x9996;&#x5148;&#xFF0C;&#x641C;&#x7D22;&#x5E76;&#x627E;&#x5230;&#x4F60;&#x9700;&#x8981;&#x7684;&#x56FE;&#x6807;&#xFF0C;&#x5C06;&#x5B83;&#x91C7;&#x96C6;&#x5230;&#x4F60;&#x7684;&#x8D2D;&#x7269;&#x8F66;&#x91CC;&#xFF0C;&#x5728;&#x8D2D;&#x7269;&#x8F66;&#x91CC;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5C06;&#x9009;&#x4E2D;&#x7684;&#x56FE;&#x6807;&#x6DFB;&#x52A0;&#x5230;&#x9879;&#x76EE;&#x4E2D;&#xFF08;&#x6CA1;&#x6709;&#x7684;&#x8BDD;&#xFF0C;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;&#xFF09;&#xFF0C;&#x540E;&#x7EED;&#x751F;&#x6210;&#x7684;&#x8D44;&#x6E90;/&#x4EE3;&#x7801;&#x90FD;&#x662F;&#x4EE5;&#x9879;&#x76EE;&#x4E3A;&#x7EF4;&#x5EA6;&#x7684;&#x3002;</p>
<blockquote>
<p>&#x5982;&#x679C;&#x4F60;&#x5DF2;&#x7ECF;&#x6709;&#x4E86;&#x8BBE;&#x8BA1;&#x7A3F;&#xFF0C;&#x53EA;&#x662F;&#x9700;&#x8981;&#x751F;&#x6210;&#x76F8;&#x5173;&#x4EE3;&#x7801;&#xFF0C;&#x53EF;&#x4EE5;&#x4E0A;&#x4F20;&#x4F60;&#x7684;&#x56FE;&#x6807;&#x540E;&#xFF0C;&#x518D;&#x8FDB;&#x884C;&#x4E0A;&#x9762;&#x7684;&#x64CD;&#x4F5C;&#x3002;</p>
</blockquote>
<p><img src="https://gw.alipayobjects.com/zos/rmsportal/jJQYzRyqVFBBamUOppXH.png" alt="&#x8D26;&#x6237;&#x76F8;&#x5173;&#x5E03;&#x5C40;"></p>
<p>**&#x73B0;&#x5728;&#x672C;&#x9879;&#x76EE;&#x652F;&#x6301;&#x548C;&#x63A8;&#x8350;&#x5355;&#x72EC;&#x5BFC;&#x51FA; svg &#x7684;&#x5F15;&#x5165;&#x4F7F;&#x7528;&#x65B9;&#x5F0F;&#x3002;</p>
<p>&#x4E0B;&#x8F7D;&#x5B8C;&#x6210;&#x4E4B;&#x540E;&#x5C06;&#x4E0B;&#x8F7D;&#x597D;&#x7684; .svg &#x6587;&#x4EF6;&#x653E;&#x5165; <code>@/icons/svg</code> &#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x4E4B;&#x540E;&#x5C31;&#x4F1A;&#x81EA;&#x52A8;&#x5BFC;&#x5165;&#x3002;</p>
<h2 id="&#x4F7F;&#x7528;&#x65B9;&#x5F0F;">&#x4F7F;&#x7528;&#x65B9;&#x5F0F;</h2>
<pre class="language-"><code class="lang-js"><span class="token operator">&lt;</span>svg<span class="token operator">-</span>icon icon<span class="token operator">-</span><span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;password&quot;</span> <span class="token operator">/</span><span class="token operator">&gt;</span> <span class="token comment">// icon-class &#x4E3A; icon &#x7684;&#x540D;&#x5B57;</span>
</code></pre>
<p><a href="https://panjiachen.github.io/vue-element-admin-site/zh/feature/component/svg-icon.html" target="_blank">&#x7EC4;&#x4EF6;&#x4ECB;&#x7ECD;</a></p>
<h2 id="&#x6539;&#x53D8;&#x989C;&#x8272;">&#x6539;&#x53D8;&#x989C;&#x8272;</h2>
<pre class="language-"><code>svg-icon` &#x9ED8;&#x8BA4;&#x4F1A;&#x8BFB;&#x53D6;&#x5176;&#x7236;&#x7EA7;&#x7684; color `fill: currentColor;
</code></pre><p>&#x4F60;&#x53EF;&#x4EE5;&#x6539;&#x53D8;&#x7236;&#x7EA7;&#x7684;<code>color</code>&#x6216;&#x8005;&#x76F4;&#x63A5;&#x6539;&#x53D8;<code>fill</code>&#x7684;&#x989C;&#x8272;&#x5373;&#x53EF;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="router-lazyload.html" class="navigation navigation-prev " aria-label="Previous page: 路由懒加载">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="i18n.html" class="navigation navigation-next " aria-label="Next page: 国际化">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"图标","level":"1.9","depth":1,"next":{"title":"国际化","level":"1.10","depth":1,"path":"src/i18n.md","ref":"src/i18n.md","articles":[]},"previous":{"title":"路由懒加载","level":"1.8","depth":1,"path":"src/router-lazyload.md","ref":"src/router-lazyload.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","-lunr","-search","search-pro","-highlight","prism","livereload"],"styles":{"website":"index.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"expandable-chapters":{},"search-pro":{},"livereload":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"introduce","language":"zh-hans","gitbook":"3.2.3","description":"项目搭建、规范、使用示例介绍"},"file":{"path":"src/icons.md","mtime":"2020-07-29T03:10:44.798Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-29T07:02:36.580Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

